package avicit.bdp.dds.server.worker.task.sparkflow.utils;


public enum RunModeType {
    DEBUG("DEBUG", "DEBUG"),
    RUN("RUN", "RUN");

    private final String value;
    private final String text;

    private RunModeType(String text, String value) {
        this.text = text;
        this.value = value;
    }

    public String getText() {
        return text;
    }

    public String getValue() {
        return value;
    }

    public static RunModeType selectGender(String name) {
        for (RunModeType portType : RunModeType.values()) {
            if (name.equalsIgnoreCase(portType.name())) {
                return portType;
            }
        }
        return null;
    }

    public static RunModeType selectGenderByValue(String value) {
        for (RunModeType portType : RunModeType.values()) {
            if (value.equalsIgnoreCase(portType.value)) {
                return portType;
            }
        }
        return null;
    }
}
